We assume that students in enrolled in this course have at least some experience using R via R Studio and in particular, using R Markdown. For those with more limited knowledge, it may be useful to brush up via the videos and additional readings below.
In this video, we describe: * the motivation for R Markdown * the
installation process for rmarkdown package and its
dependencies * opening an R Markdown document in R Studio
In this video, we describe: * what elements can be included in an R Markdown document
In this video, we describe: * the yaml header of an R
Markdown document * basics of markdown syntax * how to render R Markdown
documents in R Studio
In this video, we describe: * adding R code chunks to R Markdown documents * adding inline R code to R Markdown documents
The video references the “VRC01” data set, which is not described in previous videos. There is no real need to understand scientifically the contents of these data. They are simply an example to illustrate some of the features of R Markdown.
tinytexIn this video, we describe: * how to install tinytex to
render pdf documents in R Markdown
This video is not strictly necessary for the course, but may be
helpful for using R Markdown in the future. If you already have a
working latex installation, then you can ignore this
video.
In this video, we describe: * customizing output of document via modification of the yaml header * including inline R expressions in the header
latex and html in documentsIn this video, we describe: * how to include latex and
html in R Mardown documents when rendering to pdf * how
various output formats handle these languages when rendering
documents
As with the previous video, this is not strictly necessary for this course, but may be useful if you like to look at pdf outputs.
In this video, we describe: * how to control output formatting via
code chunk options * the various syntaxes available for specifying code
chunk options * the echo and include options *
brief overview of other common code chunk options
rmarkdown: under the hoodIn this video, we describe: * the interplay of
rmarkdown, knitr, and pandoc in
creating output
In this video, we describe: * the difference between the interactive R console in R studio and an R Markdown document * demonstrating the order of operations when rendering R Markdown documents * strategies for figuring out where errors are occurring in a document
This video is not strictly necessary for the course, but may be helpful in using R Markdown.